package com.dy.design_pattern_study.builder_pattern.dome2.impl;

import com.dy.design_pattern_study.builder_pattern.dome2.Builder;
import com.dy.design_pattern_study.builder_pattern.dome2.Product;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-03-28
 * @Content 具体建造者类
 * 具体的产品建造者，具体实现如何创建产品
 */
public class ConcreteBuilder1 extends Builder {

    private Product product = new Product();

    @Override
    public void BuildPartA() {
        product.add("A部件");
    }

    @Override
    public void BuildPartB() {
        product.add("B部件");

    }

    @Override
    public Product GetResult() {
        return product;
    }
}
